Search One Drive
AutomatR.OneDriveApp.Activities.SearchOneDrive
The "Search OneDrive" activity in AutomatR, part of the OneDrive activities package, uses Microsoft APIs to find files, metadata, and/or contents that match the values of your search parameters (Query) within your OneDrive account. This activity streamlines the process of searching for specific files or folders, enhancing the efficiency of automation workflows.
Properties
Name | Description |
---|---|
Input | |
Name | Specifies the file name, including its extension, that you would like to search for in your drive. String variables containing the file name. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Search OneDrive" activity. Integer variables containing the delay duration. Example: 5 seconds i.e. 5. |
Output | |
Result | Outputs the result of the "Search OneDrive" operation, indicating whether the specified file or folder was found (True) or not found (False). Variables of relevant types (e.g., Boolean variables) to store the operation result. |
How to Use
- Drag and drop the "Search OneDrive" activity onto the workflow.
- Configure the properties by specifying the file name you want to search for within the OneDrive account.
- Optionally, configure the delay and customize the display name.
- Execute the workflow to search for the specified file within OneDrive.
Example:
Consider an example where the "Search OneDrive" activity is used to find a file named "document.txt" within OneDrive:
Search OneDrive:
Display Name: "Search Document"
Name: "document.txt"
Result: isFileFound
In this example, the activity searches for the "document.txt" file within OneDrive. The result of the operation (whether the file is found or not) is stored in the Boolean variable "isFileFound" for further handling in the workflow.